const http = require('http')

const server = http.createServer((request, response) => {
  let url = new URL(request.url, 'http://127.0.0.1:9000')
  // console.log(request.url);
  console.log(url)
  // console.log(url.pathname)
  // console.log(url.searchParams.get('keytword'))
  response.end('url new')
})

server.listen(9000, () => {
  console.log('服务已经启动了')
})
